package cn.shop.transcation.TransactionRecord.entity;

import cn.shop.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 交易记录(TransactionRecord)表实体类
 *
 * @author jzw
 * @since 2021-12-13 10:49:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TransactionRecord extends BaseEntity {

	private static final long serialVersionUID = -5496538982582340336L;

	/**
	 * 商品id
	 */
	@NotNull(message = "商品id不能为空")
	private Long productId;

	@NotNull(message = "领取账号不能为空")
	private String account;

}

